package com.example.im.db;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.im.bean.Accounts;
import com.example.im.bean.ChatLast;
import com.example.im.bean.ChatRecord;
import com.example.im.bean.UserRoom;
import com.example.im.db.dao.AccountsDao;
import com.example.im.db.dao.ChatLastDao;
import com.example.im.db.dao.ChatRecordDao;
import com.example.im.db.dao.UserRoomDao;

@Database(entities = {
        Accounts.class, ChatLast.class, ChatRecord.class, UserRoom.class},
        version = 1)
public abstract class AppDatabase extends RoomDatabase {

    public abstract AccountsDao accountDao();

    public abstract ChatLastDao chatLastDao();

    public abstract ChatRecordDao chatRecordDao();

    public abstract UserRoomDao userRoomDao();
}
